package net.osin.playscalajs.TableControl

import com.thoughtworks.binding.Binding.{Var, Vars}
import org.scalajs.dom.raw.Event

trait TableTrait {
  val headers: Vars[String]
  val contents: Vars[Vars[Var[String]]]
  val totalCount: Int

  def addRow(event: Event)

  def generate(page_index: Int, page_size: Int): Unit
}
